package dao;

import java.sql.Timestamp;

/**
 * AbstractSolution entity provides the base persistence definition of the
 * Solution entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractSolution implements java.io.Serializable {

	// Fields

	private Integer solutionId;
	private Integer problemId;
	private String userId;
	private Integer runtime;
	private Integer memory;
	private Timestamp submitDate;
	private Short result;
	private Short language;
	private Integer contestId;
	private Short valid;
	private Integer codeLength;

	// Constructors

	/** default constructor */
	public AbstractSolution() {
	}

	/** full constructor */
	public AbstractSolution(Integer problemId, String userId, Integer runtime,
			Integer memory, Timestamp submitDate, Short result, Short language,
			Integer contestId, Short valid, Integer codeLength) {
		this.problemId = problemId;
		this.userId = userId;
		this.runtime = runtime;
		this.memory = memory;
		this.submitDate = submitDate;
		this.result = result;
		this.language = language;
		this.contestId = contestId;
		this.valid = valid;
		this.codeLength = codeLength;
	}

	// Property accessors

	public Integer getSolutionId() {
		return this.solutionId;
	}

	public void setSolutionId(Integer solutionId) {
		this.solutionId = solutionId;
	}

	public Integer getProblemId() {
		return this.problemId;
	}

	public void setProblemId(Integer problemId) {
		this.problemId = problemId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getRuntime() {
		return this.runtime;
	}

	public void setRuntime(Integer runtime) {
		this.runtime = runtime;
	}

	public Integer getMemory() {
		return this.memory;
	}

	public void setMemory(Integer memory) {
		this.memory = memory;
	}

	public Timestamp getSubmitDate() {
		return this.submitDate;
	}

	public void setSubmitDate(Timestamp submitDate) {
		this.submitDate = submitDate;
	}

	public Short getResult() {
		return this.result;
	}

	public void setResult(Short result) {
		this.result = result;
	}

	public Short getLanguage() {
		return this.language;
	}

	public void setLanguage(Short language) {
		this.language = language;
	}

	public Integer getContestId() {
		return this.contestId;
	}

	public void setContestId(Integer contestId) {
		this.contestId = contestId;
	}

	public Short getValid() {
		return this.valid;
	}

	public void setValid(Short valid) {
		this.valid = valid;
	}

	public Integer getCodeLength() {
		return this.codeLength;
	}

	public void setCodeLength(Integer codeLength) {
		this.codeLength = codeLength;
	}

}